import axios from '@/utils/request'

/**
 * 获取用户管理范围下的施工列表
 */
export function getManageByUserId(data) {
  return axios({
    url: '/api/org/getManageByUserId',
    method: 'get',
    params:data
  })
}

/**
 * 分页查询
 */
export function getPagingQuery(data) {
  return axios({
    url: '/v1/orgTreeConfig/pagingQuery',
    method: 'post',
    data
  })
}


/**
 * tree查询
 */
export function getWbsConfigTree(data) {
  return axios({
    url: '/v1/wbs/wbsConfigTree',
    method: 'get',
    params:data
  })
}


/**
 *删除
 */
export function getWbsDeleted(data) {
  return axios({
    url: '/v1/orgTreeConfig/deleted',
    method: 'get',
    params:data
  })
}

/**
 *新增
 */
export function getWbsAdd(data) {
  return axios({
    url: '/v1/orgTreeConfig/add',
    method: 'post',
  data
  })
}


